<?php 
?>
<div class="view">

    <div class="product-overview-image">	
          	<?php 
		  	if($data->images){
		   		$this->renderPartial('/image/view', array('thumb' =>true, 'model' => $data->images[0]));
			}else {
				echo CHtml::image(Shop::register('no-pic.jpg'));
			}?>
	</div>
    
     <div class="product-overview-description">
        <p>
            <?php 
            echo CHtml::link(Shop::t(CHtml::encode($data->title)), 
                array('products/view', 
                    'id' => $data->product_id),
                array('class' =>'show-product')); 
            ?>
        <br />
        <?php echo Shop::priceFormat($data->price); ?>
        <p>
           <?php 
           echo CHtml::link(Category::model()->returnTitle($data->category_id), 
                array('category/view', 
                    'id' => $data->category_id),
                array('class' =>'show-product')); 
            ?>
        </p>
    </div>
    
    <div class="clear"></div>
</div>
<div class="view-bottom"></div>
